@echo off
echo Final push to Gitee repository...
cd /d "C:\Users\Administrator\Documents\trae_projects\lt00001\magazine"

set GIT_CMD="C:\Program Files\Git\cmd\git.exe"

echo Current Git status:
%GIT_CMD% status
echo.

echo Adding remote repository...
%GIT_CMD% remote remove origin 2>nul
%GIT_CMD% remote add origin https://gitee.com/k1565566/magazine.git
echo.

echo Remote configuration:
%GIT_CMD% remote -v
echo.

echo Pushing to Gitee...
%GIT_CMD% push -u origin master
echo.

echo Push completed! Checking final status:
%GIT_CMD% status
echo.
pause